package sctu.edu.java.year2016.team07.shihaocheng.day20160531.chapter10_1;

import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

/**
 * Created by admin on 2016/5/31.
 */
public class Client {
    public static void main(String[] args) {
        List<Integer> list = new LinkedList<>();

        for (int i = 1; i < 101; i++) {
            list.add(i);
        }


        list.remove(
                9
        );

        Iterator<Integer> list1 = list.iterator();

        while (list1.hasNext()) {
            System.out.println(list1.next() + " ");
        }
    }
}
